package com.poten.mapper;

import com.poten.pojo.TbPayLog;
import org.apache.ibatis.annotations.*;

@Mapper
public interface PayMapper {
    @Insert("insert into tb_pay set pid=#{pid},pname=#{pname},cretime=#{creTime},states=#{states},price=#{price},oidList=#{oidList}")
    void insert(TbPayLog payLog);

    @Select("select * from tb_pay where pid=#{pid}")
    TbPayLog selectById(@Param("pid") String pid);

    @Update("update tb_pay set states=#{states} where pid=#{pid}")
    void updateById(TbPayLog tbPayLog);

    @Select("select * from tb_pay where pid=#{payLogId}")
    TbPayLog getById(@Param("payLogId") String payLogId);
}
